﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _07ReversingDigits
{
    class Program
    {
        static string ReverseDigits(int number)
        {
            string strNumber = number.ToString();
            char[] array = strNumber.ToCharArray();
            Array.Reverse(array);
            return new string(array);
        }
        static void Main(string[] args)
        {
            Console.Write("Enter an integer:");
            int number = int.Parse(Console.ReadLine());
            Console.WriteLine("The reversed number is:" + ReverseDigits(number));
        }
    }
}
